/**
*┌──────────────────────────────────────────────────────────────┐
*│　描    述：返佣记录                                                    
*│　作    者：gaotang                                              
*│　版    本：1.0   模板代码自动生成                                              
*│　创建时间：2019-02-13 12:39:31                            
*└──────────────────────────────────────────────────────────────┘
*┌──────────────────────────────────────────────────────────────┐
*│　命名空间: BestTrader.Cms.Models                                  
*│　类    名：RebateRecord                                     
*└──────────────────────────────────────────────────────────────┘
*/
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BestTrader.Cms.Models
{
	/// <summary>
	/// gaotang
	/// 2019-02-13 12:39:31
	/// 返佣记录
	/// </summary>
	[Table("RebateRecord")]
	public class RebateRecord
	{
		/// <summary>
		/// 主键
		/// </summary>
		[Key]
		public Int32 Id {get;set;}

		/// <summary>
		/// 直客帐号
		/// </summary>
		[Required]
		[MaxLength(10)]
		public Int32 ManagerId {get;set;}

        /// <summary>
        ///  
        /// </summary>
        [MaxLength(64)]
        public String ManagerName { get; set; }

        /// <summary>
		///  
		/// </summary>
		[MaxLength(64)]
        public String ManagerRealName { get; set; }

        /// <summary>
        /// 上级代理
        /// </summary>
        [MaxLength(10)]
		public Int32? ParentManagerId {get;set;}

        /// <summary>
        ///  
        /// </summary>
        [MaxLength(64)]
        public String ParentManagerName { get; set; }


        /// <summary>
        ///  
        /// </summary>
        [MaxLength(64)]
        public String PManagerRealName { get; set; }

        /// <summary>
        /// 交易编号
        /// </summary>
        [MaxLength(64)]
        public String DealedNumber { get; set; }

        

        /// <summary>
        /// 手续费(单边)
        /// </summary>
        [MaxLength(18)]
		public Decimal? ServiceChargeMoney {get;set;}

		/// <summary>
		/// 成交编号
		/// </summary>
		[MaxLength(16)]
		public String TransactionNo {get;set;}

		/// <summary>
		/// 成交时间
		/// </summary>
		[MaxLength(23)]
		public DateTime? TransactionTime {get;set;}

		/// <summary>
		/// 开平数量
		/// </summary>
		[MaxLength(10)]
		public Int32? Quantity {get;set;}
        
        /// <summary>
        /// 货币单位
        /// </summary>
        [MaxLength(16)]
        public String Currency { get; set; }

        /// <summary>
        /// 产品代号
        /// </summary>
        [MaxLength(16)]
        public String ProjectCode { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        [MaxLength(64)]
		public String ProjectName {get;set;}

		/// <summary>
		/// 备注
		/// </summary>
		[MaxLength(256)]
		public String Remark {get;set;}

		/// <summary>
		/// 返佣金额
		/// </summary>
		[MaxLength(18)]
		public Decimal? RebateMoney {get;set;}

		/// <summary>
		/// RMB金额
		/// </summary>
		[MaxLength(18)]
		public Decimal? RebateRMBMoney {get;set;}

		/// <summary>
		/// 添加人
		/// </summary>
		[MaxLength(10)]
		public Int32? AddManagerId {get;set;}

		/// <summary>
		/// 添加时间
		/// </summary>
		[Required]
		[MaxLength(23)]
		public DateTime AddTime {get;set;}

		/// <summary>
		/// 修改人
		/// </summary>
		[MaxLength(10)]
		public Int32? ModifyManagerId {get;set;}

		/// <summary>
		/// 修改时间
		/// </summary>
		[MaxLength(23)]
		public DateTime? ModifyTime {get;set;}

		/// <summary>
		/// 是否删除
		/// </summary>
		[Required]
		[MaxLength(1)]
		public Boolean IsDelete {get;set;}


	}
}
